<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script type="text/javascript">
function autoSubmit(){
 document.getElementById("myForm").submit();
}
</script>
<body >
{#            <form class='pull-left'>#}
                <form id='myForm' accept-charset="utf-8" class="navbar-search pull-left hidden-phone" method="get" />
                    <div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
                              名字:
                                        <select id='inputSelect' name="name" onchange="autoSubmit()">
                                       <option ></option>
                                        {% for i in users %}
                                           <option >{{ i.name }}</option>
                                        {% endfor %}
                                        </select>
{#            </form>#}
                <button class="btn btn-link icon-search " name="button" type="submit">提交</button>
{#            </form>#}
            <br>
            {% if l %}

                 姓名: {{ l.name }} 年龄:{{ l.age }} 地址"{{ l.addr }} 手机号{{ l.tel }}<br>

            {% endif %}

</body>
</html>